import { getToken } from '@/utils/auth'
import request from '@/utils/request'

export function getRules(data) { // 查询数据
  return request({
    url: '/product/rules/getRules',
    method: 'post',
    data
  })
}

export function selectrules(data) { // 查询数据
  return request({
    url: '/product/rules/selectrules',
    method: 'post',
    data
  })
}

export function query(params) { // 查询数据
  return request({
    url: '/product/rules/query',
    method: 'post',
    params
  })
}

export function insertRules(params) { // 查询数据
  return request({
    url: '/product/rules/insertRules',
    method: 'post',
    params
  })
}

export function postUpData(params) { // 查询数据
  return request({
    url: '/product/rules/postUpData',
    method: 'post',
    params
  })
}

